package com.gxc.entity;

/**
 * @author GongXincheng
 * @since 2019-09-03 11:54
 */

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * User Entity.
 *
 * @author GongXincheng
 * @since 2019-08-28 00:54
 */
@Data
@Accessors(chain = true)
public class User implements Serializable {
    private Integer id;
    private String name;
    private Integer age;
    private String email;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createOn;
    private Date updateOn;
}